package com.wkbb.common.enums;

public enum SmartPhoneTypeEnum {

    //手机模拟类型
    SMART_PHONE_TYPE_WKBB(1,"真实"),
    SMART_PHONE_TYPE_CAMPUS(2,"智慧校园模拟"),
    SMART_PHONE_TYPE_ENTERPRISE(3,"企业微信模拟"),
    SMART_PHONE_TYPE_VISIT(4,"访客模拟");

    private Integer code;
    private String desc;

    SmartPhoneTypeEnum(Integer code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    // 普通方法
    public static String getDesc(short code) {
        for (SmartPhoneTypeEnum c : SmartPhoneTypeEnum.values()) {
            if (c.getCode() == code) {
                return c.desc;
            }
        }
        return null;
    }

    public Integer getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }
}
